Ext.define ('rangoaqui.store.Promocoes', 
{
	
	extend:  'Ext.data.Store',
	
	config: {
		storeId: 'Promocoes',
		model: 'rangoaqui.model.Promocao',
		//autoLoad: true,
		proxy: {
				type: 'ajax',
				url: 'http://esaleiro.bugs3.com/wsdl/promocoes.php',
				reader: {
					type: 'json',
					rootProperty: 'promocoes'
				},
				api: {
						read: 'http://esaleiro.bugs3.com/wsdl/promocoes.php?act=loadpromocao',
						create: 'http://esaleiro.bugs3.com/wsdl/promocoes.php?act=createpromocao',
						update: 'http://esaleiro.bugs3.com/wsdl/promocoes.php?act=updatepromocao',
						destroy: 'http://esaleiro.bugs3.com/wsdl/promocoes.php?act=erasepromocao'
				}
			}
		}	

});